package com.catchman.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.catchman.entity.SysRole;
import com.catchman.vo.AuthVo;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author catchman
 * @since 2019-04-29
 */
public interface SysRoleService extends IService<SysRole> {

    Set<AuthVo> getRolesByUserId(String userId);

    List<String> getRoleIdsByUserId(String userId);

    boolean checkRidsContainRval(List<String> rids, String rval);

    boolean checkUidContainRval(String uid, String rval);
}
